package model;

/**
 * ProductInventory.java
 * Purpose: This class represents a product inventory
 * 
 * @author Hans Brems
 * @version 1.0 10/12/2011
 */

import java.util.ArrayList;

public class ProductInventory {
	/* List of all products */
	private ArrayList<Product> products;
	
	/** Constructs a new product inventory */
	public ProductInventory() {
		this.products = new ArrayList<Product>();
	}

	/** Add product to product inventory */
	public void addProduct(Product product) {
		this.products.add(product);
	}

	/** Remove product from product inventory */
	public void removeProduct(Product product) {
		this.products.remove(product);
	}

	/** Returns a product summary */
	public String printProducts() {
		String s = "";
		for (Product product : this.products) {
			 s += product.toString() + "\n";
		}
		return s;
	}
}